package com.example.sens.mapper;

import com.example.sens.entity.QuizAnswer;
import com.example.sens.vo.QuizAnswerVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuizAnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(QuizAnswer record);

    int insertSelective(QuizAnswer record);

    QuizAnswer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(QuizAnswer record);

    int updateByPrimaryKey(QuizAnswer record);

    int insertByList(@Param("list")List<QuizAnswer> list);

    List<QuizAnswerVo> getQuestionList(@Param("quizId") Long quizId );
}